import { network } from '@/utils';
import { TableListParams, payWayParams } from './data';

import { partner } from '../../../../../config/Apis';

export async function queryWithdrawalMoneyList(params: TableListParams) {
  params._content_type = 'json';
  return network.get(partner.account_withdraw_query, {
    params,
  });
}

export async function operWithdrawMoneyPayWay(params: payWayParams) {
  params._content_type = 'json';
  return network.get(partner.account_withdraw_pay_way, {
    params,
  });
}

export async function operWithdrawMoneyAlipay(params: payWayParams) {
  return network.post(partner.account_withdraw_alipay_submit, {
    params,
  });
}

export async function sendPcode(params: any) {
  return network.get(partner.send_pcode, { params });
}
